package com.cskaoyan.controller.admin.systemcontroller;

import com.cskaoyan.service.systemservice.LogService;
import com.cskaoyan.vo.BaseRespVo;
import com.cskaoyan.vo.systemvo.LogVo;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LogController {
    @Autowired
    LogService logService;

    @RequiresPermissions("admin:log:list")
    @RequestMapping("admin/log/list")
    public BaseRespVo list(Integer page,Integer limit,String name,String sort,String order){
        LogVo logVo = logService.list(page,limit,name,sort,order);
        return BaseRespVo.ok(logVo);

    }
}
